package cn.talkimages.web.front.actions.index;

import cn.talkimages.web.constant.ConstDef;
import cn.talkimages.web.front.actions.WebFrontAction;

public class IndexAction extends WebFrontAction {

	private static final long serialVersionUID = 3771250489694002694L;

	/**
	 * Index首页
	 * 
	 * @throws Exception
	 */
	public String index() throws Exception {

		return SUCCESS;
	}

	// --------------------------- Utils ---------------------------//
	/**
	 * 取得当前页面类型
	 * 
	 * @return ConstDef.PageType
	 */
	public int getPageType() {
		return ConstDef.PageType.UNKNOWN;
	}

	/**
	 * 判断是否是 用户图片介绍页面
	 * 
	 * @return boolean
	 */
	public boolean isPersonPage() {
		return ConstDef.PageType.PERSON == getPageType();
	}

	/**
	 * 判断是否是 摄影师图片介绍页面
	 * 
	 * @return boolean
	 */
	public boolean isPhotographerPage() {
		return ConstDef.PageType.PHOTOGRAPHER == getPageType();
	}
}
